<div class="dialog">
    <table>
        <tbody>
        
            <tr class="prop">
                <td valign="top" class="name">
                    <label for="product"><g:message code="inventory.product" default="Product" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: inventoryInstance, field: 'product', 'errors')}">
                    <g:select name="product.id" from="${org.leaf.green.b2b.Product.list()}" optionKey="id" value="${inventoryInstance?.product?.id}"  />
                </td>
        
                <td valign="top" class="name">
                    <label for="quantity"><g:message code="inventory.quantity" default="Quantity" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: inventoryInstance, field: 'quantity', 'errors')}">
                    <g:textField name="quantity" value="${fieldValue(bean: inventoryInstance, field: 'quantity')}" />
                </td>
            </tr>
        
            <tr class="prop">
                <td valign="top" class="name">
                    <label for="unit"><g:message code="inventory.unit" default="Unit" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: inventoryInstance, field: 'unit', 'errors')}">
                    <g:textField name="unit" maxlength="4" value="${fieldValue(bean: inventoryInstance, field: 'unit')}" />
                </td>
        
                <td valign="top" class="name">
                    <label for="amount"><g:message code="inventory.amount" default="Amount" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: inventoryInstance, field: 'amount', 'errors')}">
                    <g:textField name="amount" value="${fieldValue(bean: inventoryInstance, field: 'amount')}" />
                </td>
            </tr>
        
        </tbody>
    </table>
</div>
